import { createRouter, createWebHashHistory, createWebHistory } from 'vue-router'
import { routes } from './routesList'

// 创建路由实例
const router = createRouter({
  history: createWebHistory(),
  routes: routes,
  // 滚动行为
  scrollBehavior() {
    return {
      left: 0,
      top: 0,
    }
  },
})

// 导出
export default router
